{# Copyright [2011] [Ilya Rudakov] #}

{# Licensed under the Apache License, Version 2.0 (the "License");#}
{# you may not use this file except in compliance with the License.#}
{# You may obtain a copy of the License at#}

{#     http://www.apache.org/licenses/LICENSE-2.0 #}

{# Unless required by applicable law or agreed to in writing, software#}
{# distributed under the License is distributed on an "AS IS" BASIS,#}
{# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.#}
{# See the License for the specific language governing permissions and#}
{# limitations under the License.#}
<html>
<head>
    <title>Job history</title>
    <link type="text/css" href="/static/css/jquery-ui-1.8.7.custom.css" rel="stylesheet"/>
    <link type="text/css" href="/static/css/job_manager.css" rel="stylesheet"/>

    <style type="text/css">

    </style>
</head>
<body>
<div style="position:absolute; top:0; width:100%; background-color:#e7e6e6; height:5px;border-bottom:1px solid #d3d3d3"></div>
<div class="panel"><h2>History for job '{{ job_name }}'</h2></div>
<div style="width:100%; background-color:#e7e6e6; height:5px;border-bottom:1px solid #d3d3d3;border-top:1px solid #d3d3d3"></div>

<div class="panel">
<table style="width:90%; border: 1 solid #d3d3d3; text-align:center;" cellpadding="1" cellspacing="1" class="ui-corner-top">
    <tbody>
        <tr class="ui-widget-header">
            <td class="ui-corner-tl">Action</td>
            <td>User</td>
            <td>First name</td>
            <td>Last name</td>
            <td>E-mail</td>
            <td class="ui-corner-tr">Date/time</td>
        </tr>
        {% for item in audit %}
        <tr class="{% cycle 'tr1' 'tr2' %}">
            <td>{{ item.get_action_display }}</td>
            <td>{{ item.user }}</td>
            <td>{{ item.user.first_name }}</td>
            <td>{{ item.user.last_name }}</td>
            <td>{{ item.user.email }}</td>
            <td>{{ item.date }}</td>
        </tr>
        {% endfor %}
    </tbody>
</table>
</div>

</body>
</html>